package cn.edu.ujn.ch14.c;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class UserController {

    @RequestMapping("/index")
    public String toIndex() {
        return "index";
    }

    @RequestMapping("/rest")
    public String toRest() {
        return "restful";
    }

}
